[#ftl]
[@table_list table='sys_column' rows='10' asc='seq']
	[#list table_list as list]
		[#if list.parent_id == 0]
			[#assign number=0]
			[#list table_list as zlist]
				[#if zlist.parent_id == list.id]
				[#assign number=number+1]
				[/#if]
			[/#list]
			[#if number gt 0]
				<a href="#menu-${list.id}" class="nav-header collapsed" data-toggle="collapse"><i class="icon-folder-close"></i>${list.name!}<i class="icon-chevron-up"></i></a>[#-- <span class="label label-info">+3</span> --]
				<ul id="menu-${list.id}" class="nav nav-list collapse">
				[#list table_list as zlist]
					[#if zlist.parent_id == list.id]
					<li><a href="javascript:void(0)" onclick="toLoad('${basePath}/${zlist.url!}')">${zlist.name!}</a></li>
					[/#if]
				[/#list]
				</ul>
			[#else]
				<a href="javascript:void(0)" onclick="toLoad('${basePath}/${list.url!}')" class="nav-header"><i class="icon-folder-close"></i>${list.name!}</a>
			[/#if]
		[/#if]
	[/#list]
[/@table_list]

